package mylog

import (
	"github.com/gogf/gf/frame/g"
	"sync"
)

type myLog struct {
}

var instance *myLog
var once sync.Once

func GetInstance() *myLog {
	once.Do(func() {
		instance = &myLog{}
	})
	return instance
}
func (c *myLog) DebugLog(v ...interface{}) {
	g.Log().Async().Debug(v)
}
func (c *myLog) InfoLog(v ...interface{}) {
	g.Log().Async().Info(v)
}
func (c *myLog) ErrorLog(v ...interface{}) {
	g.Log().Async().Error(v)
}

func DebugLog(v ...interface{}) {
	g.Log().Async().Debug(v)
}

func InfoLog(v ...interface{}) {
	g.Log().Async().Info(v)
}

func ErrorLog(v ...interface{}) {
	g.Log().Async().Error(v)
}
